package com;

import java.util.ArrayList;
import java.util.List;

public class Test3 {
	
	public static void main(String[] args) {
//		System.out.println("[dddd]".replaceAll("\\[", "").replaceAll("\\]", ""));
		
//		String str = "2154a20000";
//		Long num = Long.parseLong("9571050000");
//		System.out.println(Long.toHexString(num));
		
		
		
//		String hexStr = "9ce6990000";
////		String hexStr2 = new StringBuilder(hexStr).reverse().toString();
//		String hexStr3 = "000099e69c";
////		System.out.println(hexStr2);
//		String decimalStr = "0010086044";
//		System.out.println(Long.parseLong(hexStr3, 16));
//		System.out.println(Long.toHexString(new Long(decimalStr)));
		
		
		
		
		
		
//		String hexStr = "9ce6990000";
//		String hexStr = "b19ae00000";
		String hexStr = "bf7c0e0000";
		StringBuilder builder = new StringBuilder();
		char[] charArray = hexStr.toCharArray();
		for (int i = 0; i < charArray.length; i += 2) {
			builder.insert(0, String.valueOf(new char[]{charArray[i], charArray[i+1]}));
		}
		StringBuilder result = new StringBuilder(String.valueOf(Long.parseLong(builder.toString(), 16)));
		while(result.length() < 10){
			result.insert(0, "0");
		}
		System.out.println(result);
		
//		System.out.println(Long.toHexString(957105));
//		System.out.println(Long.toHexString(10086044));
		
		System.out.println("yahoo".replaceAll("a", null));
		
	} 

}
